import { RouteRecordRaw } from 'vue-router';
import MainLayout from '@/layout/index.vue';
import EmptyLayout from '@/layout/empty.vue';

const routes: RouteRecordRaw = {
  path: '/setting',
  name: 'setting',
  redirect: '/setting/list',
  meta: {
    path: '/setting',
    title: '系统设置',
    icon: 'ic_xitong',
    layout: MainLayout,
    // disabled: false,
  },
  component: EmptyLayout,
  children: [
    {
      path: 'logo',
      name: 'settingLogo',
      meta: {
        path: '/setting/logo',
        title: '系统LOGO',
      },
      component: () => import('@/views/logo/index.vue'),
    },
    {
      path: 'list',
      name: 'settingList',
      meta: {
        path: '/setting/list',
        title: 'API设置',
      },
      component: () => import('@/views/setting/index.vue'),
    },
  ],
};

export default routes;
